package com.wolfeyes.system.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @see Talk is cheap, Show me the code. -- Linus Torvalds
 * @title 电影播放时段-实体类
 * @author yanyljava
 * @email yanyljava@qq.com
 * @create 2022-01-07 21:25
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SysMovieRuntime implements Serializable {

	private static final Long serialVersionUID = 1L;

	//电影播放时段id
	private Long movieRuntimeId;

	//播放时段名称
	@NotBlank(message = "播放时段名称不能为空")
	private String movieRuntimeName;

	//时段开始时间
	@NotBlank(message = "时段开始时间不能为空")
	@Pattern(regexp = "^(20|21|22|23|[0-1]\\d):[0-5]\\d$", message = "时间输入格式不匹配，请按照：hh:mm 输入")
	private String beginTime;

	//时段结束时间
	@NotBlank(message = "时段结束时间不能为空")
	@Pattern(regexp = "^(20|21|22|23|[0-1]\\d):[0-5]\\d$", message = "时间输入格式不匹配，请按照：hh:mm 输入")
	private String endTime;

}
